package cn.edu.nuc.film.entity;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

/**
 * 订单表
 * @author win7
 *
 */
public class Order {
	/**
	 * 订单id
	 */
    private Integer orderid;
    /**
     * 影片id
     */
    private Integer filmId;
    /**
     * 用户id
     */
    private Integer userid;
    /**
     * 订单影片的票数
     */
    private Integer ordernum;
    
    /**
     * 获取的影片名
     */
    private String filmName;
    
    
    /**
     * 获取的影片的日期
     */
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date filmStartDate;
    
    /**
     * 获取的影片价格
     */
    private int  filmPrice;
    
    /**
     * 获取的影片总价格
     */
    private int filmTprice;
    
    
    private Integer gid;
    
    /**
     * 影厅id
     */
    private Integer screensid;
    
    /**
     * 影厅name
     */
    private String screensname;
    
    
    
    
    
    public Integer getScreensid() {
		return screensid;
	}

	public void setScreensid(Integer screensid) {
		this.screensid = screensid;
	}

	public String getScreensname() {
		return screensname;
	}

	public void setScreensname(String screensname) {
		this.screensname = screensname;
	}

	public Integer getGid() {
		return gid;
	}

	public void setGid(Integer gid) {
		this.gid = gid;
	}

	public int getFilmTprice() {
		return filmTprice;
	}

	public void setFilmTprice(int filmTprice) {
		this.filmTprice = filmTprice;
	}

	public String getFilmName() {
		return filmName;
	}

	public void setFilmName(String filmName) {
		this.filmName = filmName;
	}

	public Date getFilmStartDate() {
		return filmStartDate;
	}

	public void setFilmStartDate(Date filmStartDate) {
		this.filmStartDate = filmStartDate;
	}

	public int getFilmPrice() {
		return filmPrice;
	}

	public void setFilmPrice(int filmPrice) {
		this.filmPrice = filmPrice;
	}

	public Integer getOrderid() {
        return orderid;
    }

    public void setOrderid(Integer orderid) {
        this.orderid = orderid;
    }

    public Integer getFilmId() {
        return filmId;
    }

    public void setFilmId(Integer filmId) {
        this.filmId = filmId;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public Integer getOrdernum() {
        return ordernum;
    }

    public void setOrdernum(Integer ordernum) {
        this.ordernum = ordernum;
    }

	@Override
	public String toString() {
		return "Order [orderid=" + orderid + ", filmId=" + filmId + ", userid=" + userid + ", ordernum=" + ordernum
				+ ", filmName=" + filmName + ", filmStartDate=" + filmStartDate + ", filmPrice=" + filmPrice
				+ ", filmTprice=" + filmTprice + ", gid=" + gid + "]";
	}


    
    
    
}